<?php

/**
 * Profiles model
 */
class Profiles {
	
	/**
	 * Profiles constructor
	 * @param Registry $registry
	 * @return void
	 */
	public function __construct( Registry $registry )
	{
		$this->registry = $registry;
	}
	
	/**
	 * Get a users profiles
	 * @param int $user the user
	 * @return int the cache of Profiles
	 */
	public function getProfiles( $user )
	{
		$sql = "SELECT profile_name from profile where user_id = ".$user;
		$cache = $this->registry->getObject('db')->cacheQuery( $sql );
		return $cache;
		
	}
}
?>